﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类SYSTEM_OPLOG
     ///</summary>
     public class SYSTEM_OPLOG
     {
         private int __ID=0 ;
         private string __CZY=string.Empty ;
         private string __CZYID=string.Empty ;
         private string __CZGNMC=string.Empty ;
         private string __CZNC=string.Empty ;
         private string __CZDATE=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public SYSTEM_OPLOG()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("CZY",false);
             this.__Changed.Add("CZYID",false);
             this.__Changed.Add("CZGNMC",false);
             this.__Changed.Add("CZNC",false);
             this.__Changed.Add("CZDATE",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__CZY =string.Empty;
             this.__CZYID =string.Empty;
             this.__CZGNMC =string.Empty;
             this.__CZNC =string.Empty;
             this.__CZDATE =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["CZY"] = false;
             this.__Changed["CZYID"] = false;
             this.__Changed["CZGNMC"] = false;
             this.__Changed["CZNC"] = false;
             this.__Changed["CZDATE"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[CZY]的数据
         /// </summary>
         public string CZY
         {
              set{ __CZY = value.Replace("'","’"); __Changed["CZY"] = true;}
              get{return __CZY;}
         }
         /// <summary>
         ///设置或获取类中的[CZYID]的数据
         /// </summary>
         public string CZYID
         {
              set{ __CZYID = value.Replace("'","’"); __Changed["CZYID"] = true;}
              get{return __CZYID;}
         }
         /// <summary>
         ///设置或获取类中的[CZGNMC]的数据
         /// </summary>
         public string CZGNMC
         {
              set{ __CZGNMC = value.Replace("'","’"); __Changed["CZGNMC"] = true;}
              get{return __CZGNMC;}
         }
         /// <summary>
         ///设置或获取类中的[CZNC]的数据
         /// </summary>
         public string CZNC
         {
              set{ __CZNC = value.Replace("'","’"); __Changed["CZNC"] = true;}
              get{return __CZNC;}
         }
         /// <summary>
         ///设置或获取类中的[CZDATE]的数据
         /// </summary>
         public string CZDATE
         {
              set{ __CZDATE = value.Replace("'","’"); __Changed["CZDATE"] = true;}
              get{return __CZDATE;}
         }
    }
}
